#pragma once

#include "stdafx.h"


namespace qwtapi
{

class QWTAPI_EXPORT CallStatus
{
    friend class Call;

public:
    LONG refresh();
    bool isValid() const;

    CallState::Constant getCallState() const;

private:
    CallStatus(HCALL hCall);
    ~CallStatus();
    CallStatus(const CallStatus&) { Q_ASSERT(false); }
    CallStatus& operator=(const CallStatus&) { Q_ASSERT(false); return *this; }

    HCALL m_hCall;
    LPLINECALLSTATUS m_pCallStatus;
};

}
